$(function () {
    getData();
})
function getData() {
    var  year = $('#dateTime').val();
    console.log(year);
    $.ajax({
        url: "/count/associator",
        dataType: "json",
        type: "post",
        data:{year:year},
        success: function (json) {
            myChart.setOption({series: json});
        },
        error: function () {alert("失败！")}
    })
}